
╔═════════╦════════════════════════════════════════════════════════════
║ GT-HELP ║ \AUTOEXEC.BAT - configuring it for GT 15.50
╚═════════╩════════════════════════════════════════════════════════════


    The AUTOEXEC.BAT file is executed by DOS whenever your system is
    restarted. It is therefore a convenient place for executing commands
    that set your machine into a known state prior to starting GT.

    In most cases you will also use it, directly or indirectly, to start GT
    in host mode.  This ensures that your bulletin board will recover in
    the event of a power failure or other recoverable problem.

    The AUTOEXEC.BAT file must be in the root directory of your boot drive
    (usually drive C).  If you specified the boot drive correctly when
    GT-Help requested it, that file will presently be available in the
    other editor window for you to examine and make any necessary changes.



┌──────────────────────────────┐
│ Suggestions for AUTOEXEC.BAT │
└──────────────────────────────┘

    a)  Define the DOS environment variable GTPATH, eg

            SET GTPATH=C:\GT

        This must specify the directory where you installed the main GT
        files.

        GT, and many GT companion programs including GT-Help, look for this
        environment variable as they start.



    b)  Ensure the DOS PATH contains the GTPATH directory.

        There will probably already be a statement

            SET PATH= ....

        in autoexec.bat - just add ;C:\GT or whatever (ie, a semicolon
        followed by the full pathname as defined for GTPATH).

        For example:

            SET PATH=C:\DOS;C:\BIN;C:\GT


    c)  Make DOORMAN resident.

        Doorman is a separate program from Chris Smith, which ensures that
        your machine gets rebooted if carrier is lost while outside GT,
        or if a caller stays too long in a door.

        Note however that DOORMAN only loads the program, making it
        resident but leaving it dormant.  It usually becomes active when a
        CHEKTIME command is executed, usually done towards the beginning of
        a door or external protocol batch file.

        Note:   If multitasking, eg with DV, rebooting may not be what you
                want to do (work in other partitions might get lost).  I
                believe there are other programs around which just kill
                GT (allowing it to restart via its controlling batch file)
                but have no details as yet.

    d)  Consider how you will make GT restart in host mode so as to recover
        from a power failure or other recoverable problem which causes a
        reboot - including loss of carrier.  Details below.


    e)  If you are intending to running multiple copies of GT, or run GT
        concurrently with Sysop Tools, MMR or other programs, you should
        include the SHARE command.


┌───────────────────┐
│ Possible problems │
└───────────────────┘

    If an Out of Environment message occurs when autoexec.bat runs, you
    need to increase the environment space - see CONFIG.SYS.


┌─────────────────┐
│ Autostarting GT │
└─────────────────┘

    The GT15HOST.DOC file suggests a procedure involving swapping
    AUTOEXEC.BAT files for power recovery purposes.

    If you prefer a simpler arrangement, and your machine is *mostly* used
    for running GT in host mode, just add these statements to the end of
    AUTOEXEC.BAT :

            GTH /W5:HOST

    This presents a popup giving 5 seconds to quit to DOS on the occasions
    when you do NOT wish to boot into GT :

    a)      If you allow the delay to expire, GTH will swap itself out of
            memory and ask DOS to execute your HOST.BAT file.

    b)      If you press the SPACE bar, the HOST.BAT file will be executed
            even sooner.

    c)      If you press escape, GTH will give you a menu with choices of :

                returning to DOS
                executing GT in host mode       (via HOST.BAT)
                executing GT in terminal mode   (via GT.BAT)
                executing Sysop Tools           (ST.EXE somewhere in DOS path)
                executing MMR                   (MMR.EXE somewhere in DOS path)


    The delay time is adjustable, ie /W3 = 3seconds, /W12 = 12 seconds.
    You can also have another program booted instead.  For instance, if
    you run GT under Desqview and have created a DV.BAT file to control it,
    then the command could be :

        GTH /W5:DV


┌──────────────────────┐
│ Editing AUTOEXEC.BAT │
└──────────────────────┘

    AUTOEXEC.BAT should presently be in the other editor window for you to
    examine and make any necessary changes.

